package com.ziJing.multithreading.sync;

import org.openjdk.jol.info.ClassLayout;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @program Multithreading
 * @description:
 * @author: zhangbo
 * @create: 2022/05/02 15:24
 */
public class T04_HelloJOL {
    public static void main(String[] args) {
        Object o = new Object();
        int i = o.hashCode();
        System.out.println(i);
        System.out.println(ClassLayout.parseInstance(o).toPrintable());

        synchronized (o){
            System.out.println(ClassLayout.parseInstance(o).toPrintable());
        }

    }
}
